<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
     
    </style>
</head>
<body>
        <table border="1" >
                <thead>
                <tr>
                    <th style="width: 200px;">学号</th>
                    <th style="width: 200px;">姓名</th>
                    <th style="width: 100px;">操作</th>
                </tr>
                </thead>
                <tbody id="tbody">
                <tr >
                    <td>xh001</td>
                    <td>王晓明</td>
                    <td><a href="#" onclick="del_row(this)">删除</a></td>
                </tr>
                <tr >
                    <td>xh002</td>
                    <td>刘晓芳</td>
                    <td><a href="#" onclick="del_row(this)">删除</a></td>
                </tr>
                </tbody>
            </table>
            <input type="button" name="btn" id="btn" value="添加一行" onclick="add1()"/>
</body>
</html>
<script src="jquery-3.2.1.min.js"></script>
<script>
 function  add1(){
     var tr='<tr ><td></td><td></td><td><a href="#" onclick="del_row(this)">删除</a></td></tr>'
     $('#tbody').append(tr);
 }  
  function  del_row(obj){
     $(obj).parent().parent().remove();
  }
</script>